package com.example.designer.chain.Impl;

import com.example.designer.chain.ChainHandler;
import org.springframework.stereotype.Component;

/**
 * 部门经理 7天一下 通过
 */
@Component
public class DepartmentManager implements ChainHandler {
    @Override
    public void doSomething(Integer inPut, ChainHandler chain) {
        if (inPut > 3 && inPut <= 7){
            System.out.println("部门经理审核通过 !!! ");
            return;
        }
        chain.doSomething(inPut,chain);
    }
}
